settings object

This method will write a string value to the registry.

bool write_string(string value_name, string content)

Parameters:
value_name
The name of the value to write.
content
The data to write to the specified value.

Return value:
True on success, false on failure.

Remarks:
Please note: You may not store more than 50 values in the registry for a given product. The data length for each value may not exceed 2048 bytes.

Example:
// Write a user's name to the registry.

void main()
{
settings game_data;
bool success=game_data.setup("Testtime Interactive", "Bonebreaker", false);
if(!success)
{
alert("Error", "Could not access the registry.");
exit();
}
success=game_data.write_string("username", "Percival Bailey");
if(!success)
{
alert("Error", "Could not write username.");
exit();
}
}